<script setup lang="ts">
import backToTop from '@/components/BackToTop.vue'
import { Utils } from '@/common/utils.js'
import { 
	INJECT_SYS_NAME, 
	INJECT_THEME_COLOR,
	INJECT_SWITCH_ON_COLOR,
	INJECT_SWITCH_OFF_COLOR,
	INJECT_REQUEST_SUCCESS_NO
} from '@/common/provideType'

const themeColor = 'night'
const switchOnColor = '#181e45'
const switchOffColor = '#ddd'

provide(INJECT_SYS_NAME, 'tap')
provide(INJECT_THEME_COLOR, themeColor)
provide(INJECT_SWITCH_ON_COLOR, switchOnColor)
provide(INJECT_SWITCH_OFF_COLOR, switchOffColor)
provide(INJECT_REQUEST_SUCCESS_NO, 0)

Utils.setPageWidth()
</script>

<template>
	<backToTop />
	<RouterView />
</template>
